package com.ruoyi.dp.service.impl;

import com.ruoyi.dp.domain.DpFleetSituation;
import com.ruoyi.dp.mapper.DpFleetSituationMapper;
import com.ruoyi.dp.service.IDpFleetSituationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.FileDescriptor;
import java.util.List;

@Service
public class DpFleetSituationServiceImpl implements IDpFleetSituationService {
    @Autowired
    private DpFleetSituationMapper dpFleetSituationMapper;
    @Override
    public List<DpFleetSituation> selectDpFleetSituationList(DpFleetSituation dpFleetSituation) {
        return dpFleetSituationMapper.selectDpFleetSituationList(dpFleetSituation);
    }

    @Override
    public int deleteDpFleetSituationById(Long id) {
        return dpFleetSituationMapper.deleteDpFleetSituationById(id);
    }

    @Override
    public int deleteDpFleetSituationByIds(Long[] IDs) {
        return dpFleetSituationMapper.deleteDpFleetSituationByIds(IDs);
    }

    @Override
    public int insertDpFleetSituation(DpFleetSituation dpFleetSituation) {
        return dpFleetSituationMapper.insertDpFleetSituation(dpFleetSituation);
    }

    @Override
    public DpFleetSituation selectDpFleetSituationById(Long id) {
        return dpFleetSituationMapper.selectDpFleetSituationById(id);
    }

    @Override
    public int updateDpFleetSituation(DpFleetSituation dpFleetSituation) {
        return dpFleetSituationMapper.updateDpFleetSituation(dpFleetSituation);
    }
}
